package com.zxyankh.raft.service;

import com.zxyankh.raft.domain.LogEntryDomain;

import java.util.List;

/**
 * @author ankh
 * @since 31.10.2017
 */
public interface LogService {

    void addLogEntry(LogEntryDomain logEntryDomain);

    LogEntryDomain findLogEntry(int term, int index, int server);

    List<LogEntryDomain> findLogEntries(int server);

}
